package com.bitdf.txing.users.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bitdf.txing.common.entity.BaseEntity;
import com.bitdf.txing.common.valid.SaveGroup;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Lizhiwei
 * @date 2023/8/30 19:39:23
 * 注释：用户的 角色、权限 关联
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tx_ums_user_role_perm_relate")
public class UserRolePermRelateEntity extends BaseEntity implements Serializable {
    /**
     * 权限id
     */
    @NotNull(groups = {SaveGroup.class})
    private Long permId;
    /**
     * 角色id
     */
    @NotNull(groups = {SaveGroup.class})
    private Long roleId;
}
